package com.gxa.p2p.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @author xiangzuo
 * 轮播
 */
@Data
@AllArgsConstructor
@NoArgsConstructor

@ApiModel("轮播实体")
public class Management implements Serializable {

  @ApiModelProperty(name = "id",value = "轮播编号")
  private Long id;
  @ApiModelProperty(name = "roimg",value = "轮播图片地址")
  private String roimg;
  @ApiModelProperty(name = "url",value = "跳转地址")
  private String url;
  @ApiModelProperty(name = "title",value = "轮播标题")
  private String title;
  @ApiModelProperty(name = "roaddress",value = "轮播位置")
  private String roaddress;
  @ApiModelProperty(name = "area",value = "轮播区域")
  private String area;
  @ApiModelProperty(name = "startTime",value = "开始时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private Timestamp startTime;
  @ApiModelProperty(name = "endTime",value = "结束时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private Timestamp endTime;
  @ApiModelProperty(name = "sort",value = "排序")
  private Integer sort;
  @ApiModelProperty(name = "state",value = "状态")
  private Boolean state;


}
